package com.tianhao.luo.v2;

/**
 * @ClassName: NormalZombie
 * @Description: 普通僵尸
 * @author: tianhao.luo@hand-china.com
 * @date: 2020/7/1  17:53
 */
class NormalZombie extends AbstractZombie {

    public NormalZombie(){
        super(new stepByStepMove(),new BiteAttack());
    }
    public NormalZombie(Moveable moveable, Attackable attackable) {
        super(moveable, attackable);
    }

    /**
     * 外观
     */
    @Override
    public void display() {
        System.out.print(" 很普通的僵尸 ");
    }

    /**
     * 移动
     */
    @Override
    void move() {
        moveable.move();
    }

    /**
     * 攻击
     */
    @Override
    void attack() {
        attackable.attack();
    }
}
